/*
 * Copyright (c) 2022, tyustli
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-02-08     tyustli      first implementation
 */

#include <stdio.h>

/**
 * This function will div two num
 *
 * @param num1 need
 * @param num2 need
 * @param quotient need
 * @param remainder need
 *
 */

static void div_data(int num1, int num2, int *quotient, int *remainder)
{
    *quotient = num1 / num2;
    *remainder = num1 % num2;

    return;
}

int main(int argc, char **argv)
{
    int num1 = 9;
    int num2 = 2;

    int quotient;
    int remainder;

    div_data(num1, num2, &quotient, &remainder);

    printf("%d quotient %d is %d\r\n", num1, num2, quotient);
    printf("%d remainder %d is %d\r\n", num1, num2, remainder);

    return 0;
}

/******************** end of file **********************/
